/**
 * Description:
 * Author:han
 * Date: 2024-05-21
 */
public class MyThread  {
    public static void main(String[] args) {
        My my = new My();
        My my2 = new My();
        my.start();
        my2.start();
    }
    static class My extends Thread {
        int sum = 0;
        @Override
        public void run() {
            for (int i=0;i<=5;i++){
             sum+=i++;
            }
        }
    }
}
